// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * LogisticsChannel
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "logistics_channel", autoResultMap = true)
@Schema(title = "物流渠道")
public class LogisticsChannel implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 物流渠道
   */
  @TableField(value = "`name`")
  @Schema(title = "物流渠道")
  private String name;

  /**
   * 物流商
   */
  @TableField(value = "`channel_name`")
  @JoinField(LogisticsProvider.class)
  @Schema(title = "物流商")
  private Long channelName;

  /**
   * 预计时效
   */
  @TableField(value = "`expect_ageing`")
  @Schema(title = "预计时效")
  private Integer expectAgeing;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 邮编
   */
  @TableField(value = "`zip_code`")
  @Schema(title = "邮编")
  private String zipCode;

  /**
   * 运输方式 (0 - 海派; 1 - 空派; )
   */
  @TableField(value = "`mode_shipping`")
  @Schema(title = "运输方式")
  private String modeShipping;

  /**
   * 目的国家
   */
  @TableField(
    value = "`destination_country`",
    typeHandler = JacksonTypeHandler.class
  )
  @JoinField(SysCountry.class)
  @Schema(title = "目的国家")
  private List<Long> destinationCountry;

  /**
   * 提货地址
   */
  @TableField(value = "`delivery_address`")
  @JoinField(SysArea.class)
  @Schema(title = "提货地址")
  private Long deliveryAddress;

  /**
   * 是否包税 (0 - 是; 1 - 否; )
   */
  @TableField(value = "`tax_included`")
  @Schema(title = "是否包税")
  private String taxIncluded;

  /**
   * 状态 (0 - 启用; 1 - 禁用; )
   */
  @TableField(value = "`state`")
  @Schema(title = "状态")
  private String state;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 计费规则 (0 - 计费重(KG); 1 - 实重(KG); 2 - 体积(KG); )
   */
  @TableField(value = "`blling_rules`")
  @Schema(title = "计费规则")
  private String bllingRules;

  /**
   * 材积参数
   */
  @TableField(value = "`volume_parameter`")
  @Schema(title = "材积参数")
  private String volumeParameter;

  /**
   * 分抛计算 (0 - 是; 1 - 否; )
   */
  @TableField(value = "`split_calculation`")
  @Schema(title = "分抛计算")
  private String splitCalculation;

  /**
   * 单票最小重量
   */
  @TableField(value = "`min_weight`")
  @Schema(title = "单票最小重量")
  private Integer minWeight;

  /**
   * 计费规则
   */
  @TableField(value = "`billing_rules`")
  @Schema(title = "计费规则")
  private String billingRules;

  /**
   * 基材参数
   */
  @TableField(value = "`substrate_param`")
  @Schema(title = "基材参数")
  private Integer substrateParam;

  /**
   * 分抛计算
   */
  @TableField(value = "`split_calc`")
  @Schema(title = "分抛计算")
  private String splitCalc;

  /**
   * 单票最小重量
   */
  @TableField(value = "`ticket_min_weight`")
  @Schema(title = "单票最小重量")
  private Integer ticketMinWeight;

  /**
   * 单票最小重量单位
   */
  @TableField(value = "`ticket_min_weight_unit`")
  @Schema(title = "单票最小重量单位")
  private String ticketMinWeightUnit;
}
